const arr = [
  { label: '男', value: 1 },
  { label: '女', value: 0 }
]
function f(arr) {
  const newArr = []
  arr.forEach((item) => {
    const newValue = item.label
    newArr.push(newValue)
  })
  return newArr
}
const arr2 = f(arr)
console.log(arr2)
